/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wso.bus;

import wso.dao.OrderDao;
import wso.dto.WsoOrder;

/**
 *
 * @author Violet_Ink
 */
public class OrderBusImpl implements OrderBus{

    private OrderDao orderDao;

    public void setOrderDao(OrderDao orderDao) {
        this.orderDao = orderDao;
    }

    public void deleteOrder(String orderid) {
        orderDao.deleteOrder(orderid);
    }

    public void saveorUpdateOrder(WsoOrder order) {
        orderDao.saveOrUpdateOrder(order);
    }

    public WsoOrder[] getAllOrder() {
        return orderDao.getAllOrder();
    }

    public WsoOrder getOrder(String orderid) {
        return orderDao.getOrder(orderid);
    }
}
